package com.rogue.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * <p>
 * <code>AuthServerApplication</code>
 * </p>
 * Description:
 * @author jianzh5
 * @date 2020/2/25 16:37
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableResourceServer
@MapperScan("com.rogue.auth.mapper")
public class AuthServerApplication {


    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(AuthServerApplication.class);
        springApplication.setAllowBeanDefinitionOverriding(true);
        springApplication.run(args);
        // SpringApplication.run(AuthServerApplication.class, args);
    }
}
